<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./ststic/js/jquery.js"></script>
</head>
<body>

<div>
    <button id="ajaxDemo">放弃治疗</button>
</div>
<div>
    <h1 id="data"></h1>
</div>

<script>
    $(function () {
        $('#ajaxDemo').on("click",function (e) {

            $.ajax(
                {
                    url:'/data',
                    dataType:'json',


                    success:function (data) {


                            $('#data').text(JSON.stringify(data));

                    }
                }
            )
        })

    });


</script>


</body>
</html>